import { createRouter, createWebHistory } from 'vue-router'
import view from "@/views/index.vue"
import loginView from "@/views/auth/loginView.vue"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   {
      path: "/",
      name: "view",
      component: view,
      children: [
        {
          path: "/",
          redirect: "home",
        },
        {
          path: "/login",
          name: "login",
          component: loginView,
        }
        // {
        //   path: "/home",
        //   name: "home",
        //   component: HomeView,
        // },
        
      ]
    }
  ],
})

export default router
